package cn.hdu.liang.innerclasses;

public class Parcel9 {

    public Destination destination(final String dest) {
        return new Destination() {
            public String label = dest;

            @Override
            public String readLabel() {
                return label;
            }
        };
    }

    public static void main(String[] args) {
        Parcel9 p = new Parcel9();
        Destination d = p.destination("tsl");
    }

}
